package com.car.oop;

public class Car {
    private String brand;

    public Car(){

    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public   Car(String brand){
        this.brand= brand;
    }
    public void drive(){
        System.out.println(getBrand()+"牌汽车正在行驶");
    }
    public void variableSpeed(){
        System.out.println(getBrand()+"汽车正在变速行驶");
    }



}
